package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    Comment selectByPrimaryKey(Long id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment record);

    void saveImg(@Param("id") Long id, @Param("imgUrl") String imgUrl);

    List<Comment> selectStrategyByStrategyId(QueryObject qo);

    List<String> selectImgUrl(Long id);

    List<Comment> selectByUserId(CommentQueryObject qo);
}